<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<smart> $template_dir </smart>/css/validate.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/validation.js"></script>
<script type="text/javascript">
<!--
Validator.Setup(
{
	Name : 'addnews',
	DataSource : '',
	DataSourceType : Validator.Enumerate.DataSourceType.Attribute | Validator.Enumerate.DataSourceType.Xml,
	ValidateType : Validator.Enumerate.ValidateType.Submit | Validator.Enumerate.ValidateType.Blur,
	AlertType : Validator.Enumerate.AlertType.Color | Validator.Enumerate.AlertType.SummarySingle ,
	Summary : 'news_summary',
	XmlPath : '../operation/lang_for_xml.php?f=news',
	XPath : {Path : 'own_news.add.html'}
}
);
-->
</script>
</head>
<body>
<div id="news_summary" class="Validator_Summary" style="display:none"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<smart> if $news_array.news_id != "" </smart>
<smart> assign var='action' value='update' </smart>
<smart> else </smart>
<smart> assign var='action' value='save' </smart>
<smart> /if </smart>
<form id="addnews" action="own_news.php?action=<smart> $action </smart>" method="post">
    <tr>
      <td width="30%" align="right"><smart> $langNewsTitle </smart></td>
      <td width="70%">
        <input type="text" name="txtNewstitle" id="txtNewstitle" value="<smart> $news_array.news_title </smart>"/>
        *      </td>
    </tr>
    <tr>
      <td align="right"><smart> $langNewsAuthor </smart></td>
      <td><input type="text" name="txtNewsauthor" id="txtNewsauthor"  value="<smart> $news_array.news_author </smart>"/></td>
    </tr>
    <tr>
      <td align="right"><smart> $langNewsKeyword </smart></td>
      <td><input type="text" name="txtNewskeyword" id="txtNewskeyword"  value="<smart> $news_array.news_keyword </smart>"/></td>
    </tr>
    <tr>
      <td align="right"><smart> $langNewsViewNum </smart></td>
      <td><input type="text" name="txtNewsviewnum" id="txtNewsviewnum" value="<smart> $news_array.news_view_num|default:0 </smart>"/></td>
    </tr>
    <tr>
      <td align="right"><smart> $langNewsContent </smart></td>
      <td><textarea name="txtNewscontent" id="txtNewscontent" rows="4" cols="30"><smart> $news_array.news_content </smart></textarea>
      *</td>
    </tr>
    <tr>
      <td colspan="2" align="center"><input type="submit" name="button" id="submit" value="<smart> $langbtnNewsSubmit </smart>" /></td>
    </tr>
    <input type="hidden" name="txtNewsid" id="txtNewsid" value="<smart> $news_array.news_id </smart>"/>
</form>
</table>
</body>
</html>